<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.Master" CodeBehind="Laboratoare.aspx.cs" Inherits="IEWebSite.Pages.Intranet.Laboratoare" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
       Laboratoare
   </h1>
<div style="width:90%;" align="left">
    Laboratoare: 
    <telerik:RadComboBox ID="rcbLab" runat="server" DataSourceID="SqlDataSource2" 
		DataTextField="Sala" DataValueField="IDLaborator" Skin="Default" 
		OnSelectedIndexChanged="rcb_SelectedIndexChanged" AutoPostBack="True">
    </telerik:RadComboBox>
    <br></br>
    Nr. Calculatoare:
    <telerik:RadTextBox ID="txtNrCalc" runat="server" 
        Skin="Sunset" Width="125px" ReadOnly="true">
    </telerik:RadTextBox>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SiteIEConnectionString %>" 
        SelectCommand="SELECT [IDLaborator], [Sala] FROM [Laborator]">
    </asp:SqlDataSource>
    <br></br>
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False"  DataSourceID="SqlDataSource1" GridLines="None">
<MasterTableView DataSourceID="SqlDataSource1">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
	<Columns>
		<telerik:GridBoundColumn DataField="SoftwareTitle" HeaderText="Software" 
			SortExpression="SoftwareTitle" UniqueName="SoftwareTitle" ItemStyle-HorizontalAlign="Left">
<ItemStyle HorizontalAlign="Left"></ItemStyle>
		</telerik:GridBoundColumn>
		<telerik:GridBoundColumn DataField="CerinteHDW" HeaderText="Cerinte hardware" ItemStyle-HorizontalAlign="Left" SortExpression="CerinteHDW" 
			UniqueName="CerinteHDW">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
		</telerik:GridBoundColumn>
		<telerik:GridBoundColumn DataField="Versiune" HeaderText="Versiune" ItemStyle-HorizontalAlign="Center" SortExpression="Versiune" 
			UniqueName="Versiune">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
		</telerik:GridBoundColumn>
	</Columns>
</MasterTableView>
		</telerik:RadGrid>
	<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
		ConnectionString="<%$ ConnectionStrings:SiteIEConnectionString %>" 
		
        SelectCommand="SELECT SoftwareTitle, isnull(Versiune,'-'), isnull(CerinteHDW,'-') FROM LaboratorXSoftware as LS
		               INNER JOIN SysSoftware with(nolock) on LS.IdSoftware=SysSoftware.IdSoftware WHERE (LS.IDLaborator = @IDLaborator)">
		<SelectParameters>
			<asp:ControlParameter ControlID="rcbLab" Name="IDLaborator" 
                PropertyName="SelectedValue" Type="Int32" />
		</SelectParameters>
	</asp:SqlDataSource>
	<br></br>
	<b>Puteti solicita software accesand link-ul urmator:  </b>
	    <asp:HyperLink ID="hplnkSUbmit" runat="server" NavigateUrl="~/Pages/Intranet/CerereSoftware.aspx" Target="_blank" >Cerere soft</asp:HyperLink>

	</div>

	</asp:Content>
